import Vue from 'vue';
import render from './render.vue';

const RenderComponent = Vue.extend(render);

export const createComponent = (msg) => {
    const parent = document.body;
    const instance = new RenderComponent({
        el: document.createElement('div'),
        propsData: {
            msg: msg,
            list: [1, 2, 3, 4],
        },
    });
    parent.appendChild(instance.$el);
};
